package com.example.phonestore.mapper;

import com.example.phonestore.entity.Cart;
import com.example.phonestore.entity.showCart;

import java.util.List;

public interface CartMapper {

    Integer insertCart(Cart cart);

    Integer updateNumByCid(Integer cid,Integer num);

    Cart findByUidAndPid(Integer uid,Integer pid);

    List<showCart> showCartByUid(Integer uid);

    Cart findByCid(Integer cid);

    Integer deleteCartOne(Integer cid);

}
